eeprom: Pull out address computation
authorMarek Vasut <[email protected]>
Tue, 10 Nov 2015 19:53:24 +0000 (20:53 +0100)
committerTom Rini <[email protected]>
Sun, 22 Nov 2015 02:50:23 +0000 (21:50 -0500)
commit02c321cf88c14f330e696830554739d745bb359d
tree4e70c47da0ad1eb33162a06fcb55764ea9adbfc0
parent9132088b00b6ba4d57536f2a3895ee71f28509d0
eeprom: Pull out address computation

Pull out the code computing the EEPROM address into separate function
so that it's not duplicated.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Heiko Schocher <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
common/cmd_eeprom.c